#ifndef _MD5_HASH_HELPER_H
#define _MD5_HASH_HELPER_H

#include "../LibUtil.h"

LIB_UTIL_NAMESPACE_BEGIN

class MD5HashHelper
{
public:
	 static char* GetDataBufferHashString(const tDataBuffer& buffer);
	 static long long GetDataBufferHashInt64(const tDataBuffer& buffer);
	 static void GetDataBufferHashInt128(const tDataBuffer& buffer, long long& first64, long long& second64);
	 static char* GetFileHashString(const char* path);
	 static long long GetFileHashInt64(const char* path);
	 static bool CheckDataBufferHash(const tDataBuffer& buffer, const char* MD5Char);
	 static bool CheckFileHash(const char* path, const char* MD5Char);
	 static void ReleaseHashString(char* MD5Char);
private:
	MD5HashHelper(void);
	~MD5HashHelper(void);
};

LIB_UTIL_NAMESPACE_END

#endif //_MD5_HASH_HELPER_H
